<title>发布需求</title> 
<jquery />
<jsconst /> 
<load file="__PUBLIC__/head.html" />
<css file="__PUBLIC__/css/xuqiuadd.css" />
<css file="__STATIC_/ui/uploadify/uploadify.css"/>
<style type="text/css">
/*
Uploadify
Copyright (c) 2012 Reactive Apps, Ronnie Garcia
Released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
#file_upload{
	text-decoration: underline;
	color: blue;
	width: 50px;

}
.uploadify-queue-item .cancel a {
	background: url(./uploadify-cancel.png) 0 0 no-repeat;
	float: right;
	height:	16px;
	text-indent: -9999px;
	width: 16px;
}


</style> 

<js file="__PUBLIC__/js/xuqiuadd.js" />
<js file="__PUBLIC__/uploadify/uploadify.js" />
<script type="text/javascript">
		<?php $timestamp = time();?>
		$(function() {
			$('#file_upload').uploadify({
				'formData'     : {
					'timestamp' : '<?php echo $timestamp;?>',
					'token'     : '<?php echo md5('unique_salt' . $timestamp);?>'
				},
				'width':'50px',
				'swf'      : PUBLIC+'/uploadify/uploadify.swf',
				'uploader' : PUBLIC+'/uploadify/uploadify.php',
				'auto'	   :true,
				'muti'	   :true,
				'buttonText'    : '上传附件',  
				'removeCompleted':'false',
				'onUploadSuccess':function(file,data,response){	
					  // alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data);//data返回的结果等于异步传回来的值, file就上上传的文件
					$('#file_upload').append("<input type='hidden'name='thumb[]'value="+'upload/'+file.name+"/>");
					
					},
			})
		})


</script>
</div></div>
	<div id="body">
		<div class="big">

			<div class="dh"><!--导航-->
			<span class="on">描述需求</span><span>确认</span><span>发布成功</span>
			</div>
		<div id="cont">	
		<form method="post" action="__CONTROL__/xuqiu_add">
			
			<input type="hidden" value="<?php echo isset($_GET['cateid'])?$_GET['cateid']:''?>" name="cateid"class="cateid"/>
				<div class="c_l">
				<p><b>选择类目：</b>
					<if value="isset($self)">
						<span class="sp1" cid="{$pparent.cateid}">{$pparent.cname}</span>
						>>>
						<span class="sp2" cid="{$parent.cateid}">{$parent.cname}</span>
						>>>
						<span class="sp3" cid="{$self.cateid}">{$self.cname}</span>
					
					<else>
						<span class="sp1" >最新分类</span> >>>
						<span class="sp2">最新分类</span> >>>
						<span class="sp3">最新分类</span> >>>
						</if>
					<a href="javascript:void(0)" class="change">重选分类</a>
				</p>
				<div id="lan">
					</div>
					<div id="lanm">
						<div id="lan_t">
							<p class="p1"> 选择分类<span>×</span></p>
							<div class="lan_s">
								<span>搜索:</span><input type="text" name="search" />
								<em></em>
								<p class="button"></p>
							</div>
						</div>
 					<ul class="u1">
 						<list from="$cate" name="$m">
 						  <if value="{$m.pid}==0">
 							<li><h1 cid="{$m.cateid}">{$m.cname}</h1>
 								<list from="$cate" name="$n">	
 									<if value="{$n.pid}=={$m.cateid}">
 										<ul class="u4">	
 											<li><h2 cid="{$n.cateid}">{$n.cname}</h2>
 												<list from="$cate" name="$x">
 													<if value="{$x.pid}=={$n.cateid}">
 														<ul class="u5">
 															<li><h3 cid="{$x.cateid}">{$x.cname}</h3></li>
 														</ul>
 													</if>
 												</list>
 										
 											</li>
 										
 										</ul>
 									</if>
 								</list>
 							</li>
 						  </if>
 						</list>
 					</ul>
 					<p class="xia"></p>
 					<ul class="u2"></ul>
 					<p class="xia"></p>
 					<ul class="u3"></ul>
 				</div>
				
				<p class="error2"><span class="error"></span>
			 	<b>请选择分类</b>
			 </p>
			 <div class="c"></div>
				<h4>一句话描述您的需求</h4>		
				
					<p class="title">
						<i></i>
						<input type="text" name="title" value="例如：XX科技公司LOGO设计" class="text"/>
				<p class="error1"><span class="error"></span>
			 	<b>应为2~30个字</b>
			 </p>
					</p>
					<h5>将需求说得详细些 <a href="">看看别人怎么写</a></h5>
					<div class="ed">
					<editor style="2" width="500" height="200" name="con" class="ee" />
				</div>
			
				<div id="queue"></div>
				<input id="file_upload" name="file_upload" type="file" multiple="true" style="cursor:pointer">
				<input type="hidden" name="thumb[]"value='' class="upload"/>
				<!-- <a href="javascript:$('#file_upload').uploadify;">上传文件</a> -->
				<!-- <a href="javascript:$('#file_upload').fileUploadClearQueue();">取消上传队列</a> -->
				<p class="help">
					<span>最多可添加五个附件，每个大小不超过10MB</span>
					<a href="__PUBLIC__/help">无法正常上传?</a>
					</p>

				<div class="lx">
					<b>联系方式</b>
					<i></i>
					<span>真实的联系方式有助于客服及时与您沟通</span>
					</div>

				<div id="shouji"><!--手机号-->
					<span class="phone"></span>
					<input type="text" value="输入手机号码" name="phone"class="text" />
				</div>

			 <p class="error2"><span class="error"></span>
			 	<b>请输入正确的手机号</b>
			 </p>
			 <div class="time">
			 酬金:
			 	<input type="text" name="price"class="price" style="height: 26px;font-size:16px;width:70px;overflow:auto"/> 元
			 	</div>
				<p class="error1" style="left:160px;top:-46px;"><span class="error"></span>
			 	<b>请填写酬金</b>			 	 		 
			 <div class="time">
			 投标期限:
				 <input type="radio" name="time" value="7"/>一个星期
				 <input type="radio" name="time" value="10" />10天
				 <input type="radio" name="time" value="15" />半个月
				 <input type="radio" name="time" value="30"/>一个月
			 	 		 </div>
			 <div class="time">
			 	参与方式：
			 	<input type="radio" name="style" value="1" />先交稿	
			 	<input type="radio" name="style" value="2" />先报价
			 </div>	 

			 <div class="time">
				 <input type="checkbox" name="need" value="1" />&nbsp;&nbsp;登陆可见
				 <input type="checkbox" name="hot"   value="1" />&nbsp;&nbsp;热门推荐
			</div>
			<div id="xieyi"><!--协议-->
					<input type="checkbox" class="chek" />
					<span>我已阅读并接受</span>《
				<a href="#">猪八戒网任务发布协议(试行)</a>》	
			</div>
			 <input type="submit" class="sub" value=""/>
			
			</div>
		</form>
		
		
		<div id="c_r">
			<h3>猪八戒网为您承诺</h3>
			<ul>
				<li><a href="#">服务商100%实名认证</a></li>
				<li><a href="#">无有效稿件，全额退款</a></li>
				<li><a href="#">交易担保，满意后付款</a></li>
				<li><a href="#">	提供发票		</a></li>
			</ul>
			<p><b>不会发需求？</b></p>
				<a href="#">
					<img src="__STATIC__/images/zbjcall.jpg"/>
				</a>
			<p>
				<span>全国统一服务热线</span>
				<h4 style="margin-left:65px;font-size:20px;">400-166-7882</h4>			
			</p>


		</div>
		</div>

	</div>
	<div class="big" style="background:#E3E3E3;border:none">
	<div class="chil"></div>
</div>
</div>